
(@@sendmsg @storage @getback @buy @sell @repair @s_repair @@offlinemsg @storage @getback @getnextpage @getPreviouspage @@InPutString )
[@PlayLevelUp]
#CALL [\.txt] @

;-----------------------------------------
[@ButtonClick1]
#CALL [\ʾť\ť.txt] @ۺϷ
;---------------------------------------------

[@StdModeFunc6]
#IF
#ACT
HAIRSTYLE 0
SENDMSG 6 %sķѾı...

[@StdModeFunc7]
#IF
#ACT
HAIRSTYLE 1
SENDMSG 6 %sķѾָ...


[@StdModeFunc10]
#act
GAMEGOLD + 1
SENDMSG 6 ʾ:Ԫ1.ǰԪΪ<$GAMEGOLD>

[@StdModeFunc11]
#act
GAMEGOLD + 5
SENDMSG 6 ʾ:Ԫ5.ǰԪΪ<$GAMEGOLD>


[@StdModeFunc12]
#act
GAMEGOLD + 10
SENDMSG 6 ʾ:Ԫ10.ǰԪΪ<$GAMEGOLD>


[@StdModeFunc13]
#act
GAMEGOLD + 50
SENDMSG 6 ʾ:Ԫ50.ǰԪΪ<$GAMEGOLD>


[@StdModeFunc14]
#act
GAMEGOLD + 100
SENDMSG 6 ʾ:Ԫ100.ǰԪΪ<$GAMEGOLD>

[@StdModeFunc15]
#act
GAMEGOLD + 500
SENDMSG 6 ʾ:Ԫ500.ǰԪΪ<$GAMEGOLD>

[@StdModeFunc16]
#act
GAMEGOLD + 1000
SENDMSG 6 ʾ:Ԫ1000.ǰԪΪ<$GAMEGOLD>

[@StdModeFunc17]
#act
GAMEGOLD + 5000
SENDMSG 6 ʾ:Ԫ5000.ǰԪΪ<$GAMEGOLD>


[@StdModeFunc19]
#IF
random 9
#act
#CALL [\\̻.txt] @̻
break
#IF
random 8
#act
#CALL [\\̻.txt] @̻
break
#IF
random 7
#act
#CALL [\\̻.txt] @̻
break
#IF
random 6
#act
#CALL [\\̻.txt] @̻
break
#IF
random 5
#act
#CALL [\\̻.txt] @̻
break
#IF
random 4
#act
#CALL [\\̻.txt] @̻
break
#IF
random 3
#act
#CALL [\\̻.txt] @̻
break
#IF
random 2
#act
#CALL [\\̻.txt] @̻
break
#IF
random 1
#act
#CALL [\\̻.txt] @̻
break



[@StdModeFunc21]
#IF
#ACT
Gmexecute showeffect 78

[@StdModeFunc22]
#IF
#ACT
Gmexecute showeffect 79

[@StdModeFunc23]
#IF
#ACT
Gmexecute showeffect 80

[@StdModeFunc24]
#IF 
#ACT
Gmexecute showeffect 81

[@StdModeFunc25]
#IF
#ACT
Gmexecute showeffect 82




;[@UserCmd3]
;#CALL [\л\.txt] @

;[@UserCmd4]
;#CALL [\ϵͳ\.txt] @






;----------------------------------------------

[@KillMonGetExp]
#if
NOT CHECKTEXTLIST ..\QuestDiary\\ֵ\ɳɳ.txt <$KILLMONNAME>
#act
movr M3 1 2
SetCustomItemProgressbarValue 1 1 1 + <$STR(M3)> 





#if
CheckCustomItemProgressbarValue 1 1 1 = 100
CheckCustomItemProgressbarValue 1 0 3 = 0
#act
SetCustomItemProgressbarValue 1 0 3 = 1
SetCustomItemProgressbarValue 1 1 1 = 0
SetCustomItemProgressbarValue 1 1 0 = 200

MOVR m200 2
MOVR m201 2
MOVR m202 2
SetCustomItemValue 1 3 + <$STR(M200)>
SetCustomItemValue 1 4 + <$STR(M201)>
SetCustomItemValue 1 5 + <$STR(M202)>
sendmsg 7 õ˳ɳ!

#if
CheckCustomItemProgressbarValue 1 1 1 = 200
CheckCustomItemProgressbarValue 1 0 3 = 1
#act
SetCustomItemProgressbarValue 1 0 3 = 2
SetCustomItemProgressbarValue 1 1 1 = 0
SetCustomItemProgressbarValue 1 1 0 = 300

MOVR m200 2
MOVR m201 2
MOVR m202 2
SetCustomItemValue 1 3 + <$STR(M200)>
SetCustomItemValue 1 4 + <$STR(M201)>
SetCustomItemValue 1 5 + <$STR(M202)>
sendmsg 7 õ˳ɳ!

#if
CheckCustomItemProgressbarValue 1 1 1 = 300
CheckCustomItemProgressbarValue 1 0 3 = 2
#act
SetCustomItemProgressbarValue 1 0 3 = 3
SetCustomItemProgressbarValue 1 1 1 = 0
SetCustomItemProgressbarValue 1 1 0 = 400

MOVR m200 2
MOVR m201 2
MOVR m202 2
SetCustomItemValue 1 3 + <$STR(M200)>
SetCustomItemValue 1 4 + <$STR(M201)>
SetCustomItemValue 1 5 + <$STR(M202)>
sendmsg 7 õ˳ɳ!

#if
CheckCustomItemProgressbarValue 1 1 1 = 400
CheckCustomItemProgressbarValue 1 0 3 = 3
#act
SetCustomItemProgressbarValue 1 0 3 = 4
SetCustomItemProgressbarValue 1 1 1 = 0
SetCustomItemProgressbarValue 1 1 0 = 500

MOVR m200 2
MOVR m201 2
MOVR m202 2
SetCustomItemValue 1 3 + <$STR(M200)>
SetCustomItemValue 1 4 + <$STR(M201)>
SetCustomItemValue 1 5 + <$STR(M202)>
sendmsg 7 õ˳ɳ!

#if
CheckCustomItemProgressbarValue 1 1 1 = 500
CheckCustomItemProgressbarValue 1 0 3 = 4
#act
SetCustomItemProgressbarValue 1 0 3 = 5
SetCustomItemProgressbarValue 1 1 1 = 0
SetCustomItemProgressbarValue 1 1 0 = 600

MOVR m200 2
MOVR m201 2
MOVR m202 2
SetCustomItemValue 1 3 + <$STR(M200)>
SetCustomItemValue 1 4 + <$STR(M201)>
SetCustomItemValue 1 5 + <$STR(M202)>
sendmsg 7 õ˳ɳ!

#if
CheckCustomItemProgressbarValue 1 1 1 = 600
CheckCustomItemProgressbarValue 1 0 3 = 5
#act
SetCustomItemProgressbarValue 1 0 3 = 6
SetCustomItemProgressbarValue 1 1 1 = 0
SetCustomItemProgressbarValue 1 1 0 = 700

MOVR m200 2
MOVR m201 2
MOVR m202 2
SetCustomItemValue 1 3 + <$STR(M200)>
SetCustomItemValue 1 4 + <$STR(M201)>
SetCustomItemValue 1 5 + <$STR(M202)>
sendmsg 7 õ˳ɳ!

#if
CheckCustomItemProgressbarValue 1 1 1 = 700
CheckCustomItemProgressbarValue 1 0 3 = 6
#act
SetCustomItemProgressbarValue 1 0 3 = 7
SetCustomItemProgressbarValue 1 1 1 = 0
SetCustomItemProgressbarValue 1 1 0 = 800

MOVR m200 2
MOVR m201 2
MOVR m202 2
SetCustomItemValue 1 3 + <$STR(M200)>
SetCustomItemValue 1 4 + <$STR(M201)>
SetCustomItemValue 1 5 + <$STR(M202)>
sendmsg 7 õ˳ɳ!

#if
CheckCustomItemProgressbarValue 1 1 1 = 800
CheckCustomItemProgressbarValue 1 0 3 = 7
#act
SetCustomItemProgressbarValue 1 0 3 = 8
SetCustomItemProgressbarValue 1 1 1 = 0
SetCustomItemProgressbarValue 1 1 0 = 999

MOVR m200 2
MOVR m201 2
MOVR m202 2
SetCustomItemValue 1 3 + <$STR(M200)>
SetCustomItemValue 1 4 + <$STR(M201)>
SetCustomItemValue 1 5 + <$STR(M202)>
sendmsg 7 õ˳ɳ!



;------------------------------------һ
[@StartAutoOnline]
#IF
#act
MESSAGEBOX ʾ\\һҪġֵУÿ51ֵ\ֵԴֻá\\Ƿֵͬйһ(Y/N) @ͬһ @ȡ
break

[@ͬһ]
#IF
CHECKVAR HUMAN ɱ > 0
#ACT
CALCVAR HUMAN ɱ - 1
SAVEVAR HUMAN ɱ ..\QuestDiary\\ֵ\ɱֱ.txt
StartAutoPlayGame
SetOnTimer 46 300
SENDMSG 6 {[һ]ѾʼһԶ֣ʹÿݼ|255:0:1}{CTRL+ALT+X|254:0:1}{ֹͣһ|249:0:1}
SENDMSG 6 {[һ]֧5ӹһʱ䣬¸5ӿʼʱһֵʣࣺ|255:0:1}{<$HUMAN(ɱ)>㡿|250:0:1}
#ELSEACT
MESSAGEBOX ʾ\\ֵΪ[0]ѲԹһˣ\\ֵӹһʱ䣡
break

[@StopAutoOnline]
#ACT
SetOffTimer 46
StopAutoPlayGame
SENDMSG 6 [һ]Ѿֹͣ˹һԶ֣ʹÿݼ{CTRL+ALT+X|254:0:1}ʼһ




[@KillMon]
#if
NOT CHECKTEXTLIST ..\QuestDiary\\ֵ\ɳɳ.txt <$KILLMONNAME>
random 50
#act
CALCVAR HUMAN ɱ + 1
SAVEVAR HUMAN ɱ ..\QuestDiary\\ֵ\ɱֱ.txt
sendmsg 7 ɱ˹,áֵ,ǰΪ<$HUMAN(ɱ)>



#if
LARGE <$ATTACKMONSTER_MAXHP> 501
SMALL <$ATTACKMONSTER_MAXHP> 1001
random 5
#act
movr M5 1 2
CALCVAR HUMAN ɱ + <$STR(M5)> 
SAVEVAR HUMAN ɱ ..\QuestDiary\\ֵ\ɱֱ.txt
sendmsg 7 ɱ˹,áֵ,ǰΪ<$HUMAN(ɱ)>


#if
LARGE <$ATTACKMONSTER_MAXHP> 1001
SMALL <$ATTACKMONSTER_MAXHP> 1501
random 5
#act
movr M5 1 3
CALCVAR HUMAN ɱ + <$STR(M5)> 
SAVEVAR HUMAN ɱ ..\QuestDiary\\ֵ\ɱֱ.txt
sendmsg 7 ɱ˹,áֵ,ǰΪ<$HUMAN(ɱ)>

#if
LARGE <$ATTACKMONSTER_MAXHP> 1501
random 3
#act
movr M5 2 4
CALCVAR HUMAN ɱ + <$STR(M5)> 
SAVEVAR HUMAN ɱ ..\QuestDiary\\ֵ\ɱֱ.txt
sendmsg 7 ɱ˹,áֵ,ǰΪ<$HUMAN(ɱ)>


[@StdModeFunc121] 
#IF 
checkitem ٻ
#ACT
#say
<Ϊ˰˶ȹǰѹ,ϵͳһ/SCOLOR=250>\
<---------------------------------------------------------/SCOLOR=13>\
<:/SCOLOR=243>  <: ,,ٶ/SCOLOR=250> <:˲Ϣƶ ķն/SCOLOR=250>\
<---------------------------------------------------------/SCOLOR=13>\
<:/SCOLOR=243>  <: ,,ٶȿ/SCOLOR=250> <:䵶 ɱ/SCOLOR=250>\
<---------------------------------------------------------/SCOLOR=13>\
<ѡٻ/SCOLOR=243>   </@>     </@>\ 

[@]
#if
CHECKSLAVECOUNT < 1
#act
RECALLMOB  1 180 0
close
sendmsg 7 ɹٻһսʿ
#ELSESAY
Ѿ1ϵıڲٱ,ûվᡣ

[@]
#if
CHECKSLAVECOUNT < 1
#act
RECALLMOB  1 180 0
close
sendmsg 7 ɹٻһսʿ
#ELSESAY
Ѿ1ϵıڲٱ,ûվᡣ


[@StdModeFunc122]
#IF
#act
CALCVAR HUMAN ɱ + 1
SAVEVAR HUMAN ɱ ..\QuestDiary\\ֵ\ɱֱ.txt
SENDMSG 6 ʾ1㡰ֵ ǰܡֵ[<$HUMAN(ɱ)>]
break

[@StdModeFunc123]
#IF
#act
CALCVAR HUMAN ɱ + 5
SAVEVAR HUMAN ɱ ..\QuestDiary\\ֵ\ɱֱ.txt
SENDMSG 6 ʾ5㡰ֵ ǰܡֵ[<$HUMAN(ɱ)>]

[@StdModeFunc124]
#IF
#act
CALCVAR HUMAN ɱ + 10
SAVEVAR HUMAN ɱ ..\QuestDiary\\ֵ\ɱֱ.txt
SENDMSG 6 ʾ10㡰ֵ ǰܡֵ[<$HUMAN(ɱ)>]



[@PickUpItem]
#if
#act
LINKPICKUPITEM
#CALL [\\װɳ\.txt] @ɳ
updateitem -1

#if
#act
LINKPICKUPITEM
#CALL [\\װ\1.txt] @
updateitem -1
#CALL [\\װ\0.txt] @
updateitem -1
#CALL [\\װ\2.txt] @ѫ
updateitem -1
#CALL [\\װ\3.txt] @
updateitem -1
#CALL [\\װ\4.txt] @ͷ
updateitem -1
#CALL [\\װ\5.txt] @
updateitem -1
#CALL [\\װ\7.txt] @ָ
updateitem -1





;-------------------------ָ---------------------------


[@UnactiveTitle_32]
#act
mov T20 Ѫȡ
sendmsg 5 ȡѪ

[@ActiveTitle_32] 
#act
mov T20 Ѫ
sendmsg 7 Ѫ

[@UnactiveTitle_33]
#act
mov T21 ħȡ
sendmsg 5 ȡħ

[@ActiveTitle_33] 
#act
mov T21 ħ
sendmsg 7 ħ

[@UnactiveTitle_34]
#act
#if
#act
mov T22 ħԴȪȡ
SetOffTimer 10
sendmsg 5 ȡħԴȪ

[@ActiveTitle_34] 
#act
mov T22 ħԴȪ
SetOnTimer 10 12
;SendCenterMsg 168 255 ħԴȪ:ָ8%MP!
;sendmsg 7 ħԴȪ

[@UnactiveTitle_35]
#act
mov T23 ޼֮ȡ
sendmsg 5 ȡ޼֮

[@ActiveTitle_35] 
#act
mov T23 ޼֮
sendmsg 7 ֮⡱

[@UnactiveTitle_36]
#act
mov T24 ȡ
sendmsg 5 ȡС

[@ActiveTitle_36] 
#act
mov T24 м
sendmsg 7 С           

[@UnactiveTitle_37]
#act
mov T25 һȡ
sendmsg 5 ȡһ

[@ActiveTitle_37] 
#act
mov T25 һ
sendmsg 7 һ

[@UnactiveTitle_38]
#act
mov T26 սȡ
sendmsg 5 ȡս硱

[@ActiveTitle_38] 
#act
mov T26 ս缤
sendmsg 7 ս硱

[@UnactiveTitle_39]
#act
mov T27 ħװȡ
sendmsg 5 ȡħװ

[@ActiveTitle_39] 
#act
mov T27 ħװ
sendmsg 7 ħװ

[@UnactiveTitle_40]
#act
mov T28 бȡ
sendmsg 5 ȡб

[@ActiveTitle_40] 
#act
mov T28 б
sendmsg 7 б  

[@UnactiveTitle_41]
#act
mov T29 ֮ȡ
sendmsg 5 ȡ֮ġ

[@ActiveTitle_41] 
#act
mov T29 ֮ļ
sendmsg 7 ֮ġ

[@UnactiveTitle_42]
#act
mov T30 ֮ȡ
sendmsg 5 ȡ֮

[@ActiveTitle_42] 
#act
mov T30 ֮
sendmsg 7 ֮

[@UnactiveTitle_43]
#act
mov T31 ֮ȡ
sendmsg 5 ȡ֮

[@ActiveTitle_43] 
#act
mov T31 ֮
sendmsg 7 ֮

[@UnactiveTitle_44]
#act
mov T32 ȡ
sendmsg 5 ȡ䡱

[@ActiveTitle_44] 
#act
mov T32 伤
sendmsg 7 䡱

[@UnactiveTitle_45]
#act
mov T33 ȡ
sendmsg 5 ȡ

[@ActiveTitle_45] 
#act
mov T33 
sendmsg 7 

[@UnactiveTitle_46]
#act
mov T34 㶾ȡ
sendmsg 5 ȡ㶾

[@ActiveTitle_46] 
#act
mov T34 㶾
sendmsg 7 㶾

[@UnactiveTitle_47]
#act
ChangeModeEx 3 1 1
sendmsg 5 ȡֵɳ

[@ActiveTitle_47] 
#if
#act
MOV N95 <$MAXHP>
DIV N95 100
MUL N95 15
ChangeModeEx 3 65535 <$STR(N95)>
SendCenterMsg 249 255 ֵɳӵǰHP15%:[<$STR(N95)>] 0 2

[@UnactiveTitle_48]
#act
ChangeModeEx 4 1 1
sendmsg 5 ȡħֵɳ

[@ActiveTitle_48] 
#act
MOV N96 <$MAXMP>
MUL N96 15
DIV N96 100
ChangeModeEx 4 65535 <$STR(N96)>
SendCenterMsg 249 255 ħֵɳӵǰMP15%:[<$STR(N96)>] 0 2

[@UnactiveTitle_49]
#act
ChangeModeEx 5 1 1
sendmsg 5 ȡɳ

[@ActiveTitle_49] 
#act
MOV N97 <$MAXDC>
MUL N97 15
DIV N97 100
ChangeModeEx 5 65535 <$STR(N97)>
SendCenterMsg 249 255 ɳ15%Ĺ:[<$STR(N97)>] 0 2

[@UnactiveTitle_50]
#act
ChangeModeEx 7 1 1
sendmsg 5 ȡɳ

[@ActiveTitle_50] 
#act
MOV N98 <$MAXSC>
MUL N98 15
DIV N98 100
ChangeModeEx 7 65535 <$STR(N98)>
SendCenterMsg 249 255 ɳ15%Ĺ:[<$STR(N98)>] 0 2

[@UnactiveTitle_51]
#act
ChangeModeEx 7 1 1
sendmsg 5 ȡħɳ

[@ActiveTitle_51] 
#act
MOV N99 <$MAXMC>
MUL N99 15
DIV N99 100
ChangeModeEx 6 65535 <$STR(N99)>
SendCenterMsg 249 255 ħɳ15%Ĺħ:[<$STR(N99)>] 0 2

[@UnactiveTitle_52]
#act
mov T40 ȡ
sendmsg 5 ȡ硱

[@ActiveTitle_52] 
#act
mov T40 缤
sendmsg 7 硱

[@UnactiveTitle_53]
#act
mov T41 ȡ
SetSuckDamage = 0 10 1
sendmsg 5 ȡӡ

[@ActiveTitle_53] 
#act
mov T41 Ӽ
sendmsg 7 ӡ

[@UnactiveTitle_54]
#act
mov T42 ޵ȡ
sendmsg 5 ȡ޵С

[@ActiveTitle_54] 
#act
mov T42 ޵м
sendmsg 7 ޵С

[@UnactiveTitle_55]
#act
ChangeHumAbility 2 = 0 1
sendmsg 5 ȡɳ

[@ActiveTitle_55] 
#act
MOV N120 <$MAXAC>
MUL N120 15
DIV N120 100
ChangeHumAbility 2 + <$STR(N120)> 65535
SendCenterMsg 249 255 ӵǰ15%:[<$STR(N120)>] 0 2
sendmsg 7 ɳ

[@UnactiveTitle_56]
#act
ChangeHumAbility 4 = 0 1
sendmsg 5 ȡħɳ

[@ActiveTitle_56] 
#act
MOV N121 <$MAXMAC>
MUL N121 15
DIV N121 100
ChangeHumAbility 4 + <$STR(N121)> 65535
SendCenterMsg 249 255 ӵǰħ15%:[<$STR(N121)>] 0 2
sendmsg 7 ħɳ

[@UnactiveTitle_57]
#act
CHANGESPEED 3 0
sendmsg 5 ȡħ

[@ActiveTitle_57] 
#act
CHANGESPEED 3 2 
PLAYEFFECT 42 254 10 5 60 0 0 0 0
SendCenterMsg 249 255 츳ħٶ+300% 0 5
sendmsg 7 ħ

[@UnactiveTitle_58]
#act
CHANGESPEED 1 0
StopPlayEffect 42 187 8 0 60 0 0 0 0
sendmsg 5 ȡߡ

[@ActiveTitle_58] 
#act
CHANGESPEED 1 150 
PLAYEFFECT 42 187 8 0 60 0 0 0 0
SendCenterMsg 249 255 츳ƶٶ+150% 0 5
sendmsg 7 ߡ

[@UnactiveTitle_59]
#act
mov T47 ȡ
sendmsg 5 ȡ١

[@ActiveTitle_59] 
#act
mov T47 ټ
sendmsg 7 ١

[@UnactiveTitle_60]
#act
#if
#act
SetOffTimer 11
sendmsg 5 ȡԴȪ

[@ActiveTitle_60] 
#act
SetOnTimer 11 12
;SendCenterMsg 168 255 ԴȪ:ָ8%MP!
;sendmsg 7 ԴȪ



;------------------ħ----------------------------------

[@MagicStruck]
#Call [\츳\ս.txt] @ս紥
#Call [\츳\.txt] @䴥

[@Struck]
#Call [\츳\ս.txt] @ս紥
#Call [\츳\.txt] @䴥


;-----------------ħ-----------------------------
[@MagicAttack]
#act
sendmsg 5 M<$PKPOWER>
#Call [\츳\Աѫ.txt] @Աѫ´
#Call [\츳\Ѫ.txt] @Ѫ
#Call [\츳\ħ.txt] @ħ
#Call [\츳\޼֮.txt] @޼֮
#Call [\츳\֮.txt] @֮Ĵ
#Call [\츳\֮.txt] @֮


[@Attack]
#act
sendmsg 5 A<$PKPOWER>
#Call [\츳\Աѫ.txt] @Աѫ´
#Call [\츳\Ѫ.txt] @Ѫ
#Call [\츳\ħ.txt] @ħ
#Call [\츳\޼֮.txt] @޼֮
#Call [\츳\.txt] @д
#Call [\츳\һ.txt] @һ
#Call [\츳\б.txt] @б
#Call [\츳\֮.txt] @֮Ĵ
#Call [\츳\֮.txt] @֮
#Call [\츳\֮.txt] @֮


